package com.vincce.sport.mapper;

import java.util.List;
import java.util.Map;

import com.vincce.sport.core.MyBatisRepository;
import com.vincce.sport.entity.InvitationCode;
import com.vincce.sport.entity.Page;

@MyBatisRepository
public interface InvitationCodeMapper {
	/**
	 * 分页查询邀请码
	 * @param page
	 * @return
	 */
	public List<InvitationCode> queryByInvitationCodePage(Page<InvitationCode> page);
	/**
	 * 查询邀请码总条数
	 * @param map
	 * @return
	 */
	public Long queryByInvitationCodeCount(Map<String, Object> map);
	/**
	 * 添加邀请码
	 * @param InvitationCode
	 * @return
	 */
	public Long insertInvitationCode(InvitationCode InvitationCode);
	/**
	 * 更新邀请码
	 * @param InvitationCode
	 * @return
	 */
	public Long updateInvitationCode(InvitationCode InvitationCode);
	/**
	 * 根据邀请码查询
	 * @param id
	 * @return
	 */
	public InvitationCode selectByInvitationCode(String invitationCode);
}
